import instance from "@/tools/axios";

//添加
const VpipakAdd = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/VipPackages/Add", data);
};

//删除
const VpipakDelete = async (data: any): Promise<ResponseApiDto> => {
  return instance.post("/VipPackages/Delete", data);
};

//单个查询vip_id
const Get_dg_pak = async (params: any): Promise<ResponseApiDto> => {
  return instance.get("/VipPackages/Get_dg_pak", params);
};
//查询会员套餐
const getVipPackages = async (): Promise<ResponseApiDto> => {
  return instance.get("/SysVipPackages/GetVipPackages");
};

//查询分页
const Pagination = async (params: any): Promise<ResponseApiDto> => {
  return instance.get("/VipPackages/Pagination", params);
};

//单个查询pak_id
const Get_dg_p_pak = async (params: any): Promise<ResponseApiDto> => {
  return instance.get("/VipPackages/Get_dg_p_pak", params);
};
export {
  VpipakAdd,
  VpipakDelete,
  Get_dg_pak,
  getVipPackages,
  Pagination,
  Get_dg_p_pak,
};
